:root {
    --border-color: #d1d5da;
    --second-color: rgba(88, 96, 105, 0.36);
    --panel-background-color: #fff;
    --panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    --toolbar-background-color: #f6f8fa;
    --toolbar-icon-color: #586069;
    --toolbar-icon-hover-color: #4771F8;
    --toolbar-height: 52px;
    --toolbar-divider-margin-top: 8px;
    --textarea-background-color: #fafbfc;
    --textarea-text-color: #24292e;
    --resize-icon-color: var(--toolbar-icon-color);
    --resize-background-color: var(--toolbar-background-color);
    --resize-hover-icon-color: var(--panel-background-color);
    --resize-hover-background-color: var(--toolbar-icon-hover-color);
    --count-background-color: rgba(27, 31, 35, 0.05);
    --heading-border-color: #eaecef;
    --blockquote-color: #6a737d;
    --ir-heading-color: #660e7a;
    --ir-title-color: #808080;
    --ir-bi-color: #0033b3;
    --ir-link-color: #008000;
    --ir-bracket-color: #0000ff;
    --ir-paren-color: #008000;
    --color-default: #222222;
    --color-gray: #777777;
    --color-border: #e3e3e3;
    --color-navy: hsl(210, 25%, 12%);
    --color-link: #4771F8;
    --color-link-t6: rgba(71, 113, 248, 0.06);
    --color-link-hover: #4771F8;
    --note-tip: hsl(153, 47%, 49%);
    --note-notice: hsl(200, 100%, 50%);
    --note-warning: hsl(0, 100%, 50%);
}


/**
 * vditor reset.
 *
 * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
 * @version 1.0.0.0, Jan 22, 2020
 */

.vditor-reset {
    font-size: 16px;
    line-height: 24px;
    color: #222;
    font-variant-ligatures: no-common-ligatures;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif, "Luxi Sans", "DejaVu Sans", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
    word-wrap: break-word;
    word-break: break-word;
}

.vditor-reset--anchor {
    padding-left: 20px;
}

.vditor-reset--error {
    color: #d23f31;
    font-size: 12px;
    display: block;
    line-height: 16px;
}

@media screen and (max-width: 768px) {
    .vditor-reset {
        font-size: 12pt;
    }
}

.vditor-reset ul ul ul {
    list-style-type: square;
    margin: 0;
}

.vditor-reset ul ul {
    list-style-type: circle;
    margin: 0;
}

.vditor-reset ul,
.vditor-reset ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

.vditor-reset li+li {
    margin-top: 0.25em;
    line-break: anywhere;
}

.vditor-reset ul {
    list-style-type: disc;
}

.vditor-reset ol {
    list-style: decimal;
}

.vditor-reset dl {
    list-style: square;
}

.vditor-reset li p {
    margin: 0;
}

.vditor-reset li table,
.vditor-reset li blockquote,
.vditor-reset li iframe,
.vditor-reset li .highlight {
    margin: 1em 0;
}

.vditor-reset ol,
.vditor-reset ul,
.vditor-reset dl,
.vditor-reset table,
.vditor-reset iframe,
.vditor-reset .highlight {
    margin: 1em 0;
}

.vditor-reset audio {
    max-width: 100%;
}

.vditor-reset audio:focus {
    outline: none;
}

.vditor-reset video {
    max-height: 90vh;
    max-width: 100%;
}

.vditor-reset img {
    max-width: 100%;
    display: block;
}

.vditor-reset img.emoji {
    cursor: auto;
    max-width: 20px;
    vertical-align: sub;
}

.vditor-reset h1,
.vditor-reset h2,
.vditor-reset h3,
.vditor-reset h4,
.vditor-reset h5,
.vditor-reset h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
}

.vditor-reset h1:hover .vditor-anchor svg,
.vditor-reset h2:hover .vditor-anchor svg,
.vditor-reset h3:hover .vditor-anchor svg,
.vditor-reset h4:hover .vditor-anchor svg,
.vditor-reset h5:hover .vditor-anchor svg,
.vditor-reset h6:hover .vditor-anchor svg {
    visibility: visible;
}

.vditor-reset h1 {
    font-size: 1.5rem;
    margin-top: 0px;
    padding: 0px 0px 7.2px;
}

.vditor-reset h2 {
    font-size: 1.25rem;
    padding: 0px 0px 6px;
}

.vditor-reset h3 {
    font-size: 1.125rem;
}

.vditor-reset h4,
.vditor-reset h5,
.vditor-reset h6 {
    font-size: 1rem;
}

.vditor-reset hr {
    height: 2px;
    padding: 0;
    margin: 24px 0;
    background-color: #eaecef;
    border: 0;
}

.vditor-reset p {
    margin: 0px 0px 16px;
    line-break: anywhere;
    font-size: 16px;
    color: #222222;
    font-weight: 400;
    line-height: 24px;
}

.vditor-reset a {
    color: var(--color-link);
    text-decoration: none;
}

.vditor-reset a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.vditor-reset strong {
    font-weight: bold;
}

.vditor-reset em {
    font-style: italic;
}

.vditor-reset blockquote {
    padding: 1rem;
    margin: 0;
    border-left: 5px solid #ddd;
}

.vditor-reset blockquote> :first-child {
    margin-top: 0;
}

.vditor-reset blockquote> :last-child {
    margin-bottom: 0;
}

.vditor-reset blockquote p,
.vditor-reset blockquote li {
    color: var(--color-default);
    line-height: 1.75;
}

.vditor-reset blockquote p {
    margin: 0;
}

.vditor-reset blockquote li {
    margin: 4px 0px 0px;
}

.vditor-reset .note.tip {
    border-left: 5px solid var(--note-tip);
    background: rgba(66, 184, 131, 0.1);
    margin: 16px 0;
}

.vditor-reset .note.notice {
    border-left: 5px solid var(--note-notice);
    background: rgba(0, 170, 255, 0.1);
    margin: 16px 0;
}

.vditor-reset .note.warning {
    border-left: 5px solid var(--note-warning);
    background: rgba(255, 0, 0, 0.1);
    margin: 16px 0;
}

.vditor-reset .note-title {
    display: block;
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--color-default);
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif, "Luxi Sans", "DejaVu Sans", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
}

.vditor-reset ins>iframe {
    border: 0;
}

.vditor-reset iframe {
    border: 1px solid #d1d5da;
    max-width: 100%;
    box-sizing: border-box;
}

.vditor-reset iframe.iframe__video {
    min-width: 80%;
    min-height: 36vh;
}

.vditor-reset table {
    width: 100%;
    display: block;
    border-collapse: collapse;
    empty-cells: show;
    margin-bottom: 16px;
    overflow: auto;
    border-spacing: 0;
    word-break: keep-all;
}

.vditor-reset table td,
.vditor-reset table th {
    padding: 6px 13px;
    border: 1px solid #eeeeee;
    word-break: normal;
    /* white-space: nowrap; */
}

.vditor-reset table th {
    font-weight: 600;
    white-space: nowrap;
}

.vditor-reset table tr:nth-child(2n) {
    background-color: #f8f8f8;
}

.vditor-reset code:not(.hljs):not(.highlight-chroma):not(.vditor-linenumber) {
    margin: 0;
    font-size: inherit;
    border-radius: 0.3em;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
    word-break: break-word;
    /* white-space: pre-wrap; */
    padding: 0 5px;
}

.vditor-reset pre {
    margin: 1em 0;
    background: #f4f4f4 !important;
}

.vditor-reset pre>code {
    margin: 0;
    font-size: inherit;
    padding: 0.5em;
    border-radius: 5px;
    display: block;
    overflow: auto;
    white-space: pre;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
    background-size: 20px 20px;
    color: var(--color-default);
    background: #f4f4f4;
    word-break: initial;
    word-wrap: normal;
}

.vditor-reset pre:hover div.vditor-copy {
    display: block;
}

.vditor-reset code {
    padding: 0 5px;
    color: #657b83;
    background: #fdf6e3;
    font-size: 85%;
    padding: 0.1em;
    border-radius: 0.3em;
}

.vditor-reset .language-math,
.vditor-reset .language-echarts,
.vditor-reset .language-mindmap,
.vditor-reset .language-plantuml,
.vditor-reset .language-mermaid,
.vditor-reset .language-abc,
.vditor-reset .language-flowchart,
.vditor-reset .language-graphviz {
    margin-bottom: 16px;
}

.vditor-reset .language-math mjx-container:focus {
    outline: none;
    cursor: context-menu;
}

.vditor-reset .language-echarts,
.vditor-reset .language-mindmap {
    overflow: hidden;
    height: 420px;
}

.vditor-reset .language-mermaid,
.vditor-reset .language-flowchart,
.vditor-reset .language-graphviz {
    text-align: center;
}

.vditor-reset .language-graphviz parsererror {
    overflow: auto;
}

.vditor-reset kbd {
    display: inline-block;
    padding: 3px 5px;
    font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
    line-height: 10px;
    color: #24292e;
    vertical-align: middle;
    background-color: #fafbfc;
    border: solid 1px #d1d5da;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 #d1d5da;
}

.vditor-reset summary {
    cursor: pointer;
}

.vditor-reset summary:focus {
    outline: none;
}

.vditor-reset svg {
    height: auto;
    width: auto;
    stroke-width: initial;
}

.vditor-reset p:last-child,
.vditor-reset blockquote:last-child,
.vditor-reset pre:last-child,
.vditor-reset ul:last-child,
.vditor-reset ol:last-child,
.vditor-reset hr:last-child {
    margin-bottom: 0;
}

.vditor-comment {
    border-bottom: 2px solid #f8e6ab;
}

.vditor-comment--focus,
.vditor-comment--hover {
    background-color: #faf1d1;
    border-bottom: 2px solid #ffc60a;
}

.vditor-comment--focus .vditor-comment,
.vditor-comment--hover .vditor-comment {
    border-bottom: 2px solid #ffc60a;
}

.vditor-task {
    list-style: none !important;
    word-break: break-all;
}

.vditor-task input {
    margin: 0 0.2em 0.25em -1.6em;
    font-size: 12px;
    vertical-align: middle;
}

.vditor-copy {
    position: relative;
    display: none;
    z-index: 1;
}

.vditor-copy textarea {
    position: absolute;
    left: -100000px;
    height: 10px;
}

.vditor-copy span {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 0.5em;
}

.vditor-copy svg {
    color: #586069;
    height: 14px;
    width: 14px !important;
    display: block;
    fill: currentColor;
}

.vditor-linenumber {
    padding-left: 4em !important;
    position: relative;
}

.vditor-linenumber__rows {
    position: absolute;
    pointer-events: none;
    top: 0.5em;
    left: 0;
    width: 3em;
    /* works for line-numbers below 1000 lines */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    counter-reset: linenumber;
}

.vditor-linenumber__rows>span {
    pointer-events: none;
    display: block;
}

.vditor-linenumber__rows>span::before {
    counter-increment: linenumber;
    content: counter(linenumber);
    color: rgba(158, 150, 150, 0.38);
    display: block;
    padding-right: 1em;
    text-align: right;
}

.vditor-speech {
    position: absolute;
    display: none;
    background-color: #f6f8fa;
    border: 1px solid #d1d5da;
    border-radius: 3px;
    padding: 3px;
    cursor: pointer;
    color: #586069;
}

.vditor-speech:hover,
.vditor-speech--current {
    color: #4285f4;
}

.vditor-speech svg {
    height: 14px;
    width: 14px;
    fill: currentColor;
    display: block;
    stroke-width: 0;
    stroke: currentColor;
}

.vditor-anchor {
    margin-left: 5px;
}

.vditor-anchor--left {
    float: left;
    padding-right: 4px;
    margin-left: -20px;
}

.vditor-anchor svg {
    visibility: hidden;
}

.vditor-anchor:hover svg {
    visibility: visible;
}

.vditor-anchor:focus {
    outline: none;
}

.vditor-linkcard {
    margin: 31px auto 16px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    max-width: 768px;
    padding: 0 10px;
}

.vditor-linkcard a {
    border-radius: 3px;
    background-color: #f6f8fa;
    overflow: hidden;
    max-height: 250px;
    display: flex;
    text-decoration: none;
    flex-wrap: wrap-reverse;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.vditor-linkcard a:hover {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.13), 0 3px 6px rgba(0, 0, 0, 0.26);
    text-decoration: none;
}

.vditor-linkcard a:visited .vditor-linkcard__abstract {
    color: rgba(88, 96, 105, 0.36);
}

.vditor-linkcard__info {
    padding: 10px;
    min-width: 200px;
    box-sizing: border-box;
    flex: 1;
}

.vditor-linkcard__title {
    font-size: 14px;
    font-weight: 400;
    color: #24292e;
    display: flex;
    align-items: center;
}

.vditor-linkcard__title img {
    cursor: pointer;
    height: 20px;
    width: 20px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-right: 5px;
}

.vditor-linkcard__abstract {
    word-wrap: break-word;
    word-break: break-all;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-size: 13px;
    color: #586069;
    margin: 5px 0;
}

.vditor-linkcard__site {
    font-size: 12px;
    color: #4285f4;
}

.vditor-linkcard__image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    max-width: 250px;
    min-width: 126px;
    cursor: pointer;
    background-color: rgba(88, 96, 105, 0.36);
}

.vditor-footnotes__goto-ref {
    text-decoration: none;
}

.vditor-toc {
    margin-bottom: 16px;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    color: #4771F8;
}

.vditor-toc .vditor-outline__action {
    display: none;
}

.vditor-toc ul {
    list-style: none !important;
    padding-left: 1em;
}

.vditor-toc>ul {
    padding-left: 0;
}

.vditor-toc span {
    cursor: pointer;
}

.vditor-toc li>span>svg {
    width: 0;
    height: 0;
}

.vditor-outline {
    width: 250px;
    border-right: 1px solid var(--border-color);
    background-color: var(--panel-background-color);
    display: none;
    overflow: auto;
}

.vditor-outline--right {
    border-right: 0;
    border-left: 1px solid var(--border-color);
}

.vditor-outline::-webkit-scrollbar {
    display: none;
}

.vditor-outline ul {
    list-style: none !important;
    padding-left: 1em;
    margin: 0;
}

.vditor-outline__content>ul {
    padding-left: 0;
}

.vditor-outline li>span {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--textarea-text-color);
}

.vditor-outline li>span>svg {
    height: 10px;
    width: 10px;
}

.vditor-outline li>span:hover {
    color: var(--toolbar-icon-hover-color);
}

.vditor-outline li>span>span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vditor-outline__title {
    border-bottom: 1px dashed var(--border-color);
    padding: 5px 10px;
    color: var(--toolbar-icon-color);
    font-size: 12px;
}

.vditor-outline__action {
    transition: all 0.15s ease-in-out;
    fill: currentColor;
    margin-right: 5px;
    flex-shrink: 0;
}

.vditor-outline__action--close {
    transform: rotate(-90deg);
}

pre>.btn-copy {
    padding-top: 0.65em !important;
    opacity: 0;
    transition: all 0.3s ease;
}

pre:hover>.btn-copy {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    pre>.btn-copy {
        opacity: 1!important;
    }
}